package com.haolijun.eecms.controller;

import cn.dev33.satoken.stp.StpUtil;
import com.haolijun.eecms.service.UserService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Set;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author hljstart
 * @Date 2023/3/6 22:25
 * @Version 1.0
 */
@RestController
@RequestMapping("/test")
@Tag(name = "TestController",description = "测试Web接口")
@Slf4j
public class TestController {

    @Autowired
    private UserService userService;

    @GetMapping("/hello")
    public String testHello(){
        StpUtil.login(1);
        return "hello eecms";
    }
}
